package com.lkhd.manage.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "`user`")
public class User implements Serializable {
    @Id
    @Column(name = "`userId`")
    private Long userid;

    /**
     * 登录名
     */
    @Column(name = "`phoneNumber`")
    private String phonenumber;

    /**
     * 真实姓名
     */
    @Column(name = "`name`")
    private String name;

    @Column(name = "`nickname`")
    private String nickname;

    @Column(name = "`password`")
    private String password;

    @Column(name = "`email`")
    private String email;

    @Column(name = "`imgAddr`")
    private String imgaddr;

    /**
     * -1 拉黑 0 普通用户 1 管理员 2 志愿者
     */
    @Column(name = "`status`")
    private Integer status;

    @Column(name = "`createDate`",insertable=false)
    private Date createdate;

    @Column(name = "`updataDate`",updatable=false)
    private Date updatadate;

    /**
     * @return userId
     */
    public Long getUserid() {
        return userid;
    }

    /**
     * @param userid
     */
    public void setUserid(Long userid) {
        this.userid = userid;
    }

    /**
     * 获取登录名
     *
     * @return phoneNumber - 登录名
     */
    public String getPhonenumber() {
        return phonenumber;
    }

    /**
     * 设置登录名
     *
     * @param phonenumber 登录名
     */
    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    /**
     * 获取真实姓名
     *
     * @return name - 真实姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 设置真实姓名
     *
     * @param name 真实姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return imgAddr
     */
    public String getImgaddr() {
        return imgaddr;
    }

    /**
     * @param imgaddr
     */
    public void setImgaddr(String imgaddr) {
        this.imgaddr = imgaddr;
    }

    /**
     * 获取-1 拉黑 0 普通用户 1 管理员 2 志愿者
     *
     * @return status - -1 拉黑 0 普通用户 1 管理员 2 志愿者
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置-1 拉黑 0 普通用户 1 管理员 2 志愿者
     *
     * @param status -1 拉黑 0 普通用户 1 管理员 2 志愿者
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return createDate
     */
    public Date getCreatedate() {
        return createdate;
    }

    /**
     * @param createdate
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    /**
     * @return updataDate
     */
    public Date getUpdatadate() {
        return updatadate;
    }

    /**
     * @param updatadate
     */
    public void setUpdatadate(Date updatadate) {
        this.updatadate = updatadate;
    }
}